package Message;

import java.io.Serializable;

/**
 * @author Joker
 * @create 2022-08-15 17:24
 */
public class Message implements Serializable {
    private static final long serialVersionUID=42L;
    private String type;//代表具体操作类型，前后端统一字段

    private int code;

    private Object data;

    public Message(String type,int code,Object data)
    {
        this.type=type;
        this.code=code;
        this.data=data;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getData() { return data;}

    public void setData(Object data) {
        this.data = data;
    }
}
